package chapter10;

/**
 * Created by V5470-I5 on 2016/4/10.
 */
import java.io.*;
public class CharUtil {
    public static void dump(Reader src,Writer dest) throws IOException{
        try(Reader input=src;Writer output =dest){
            char[] data=new char[1024];
            int length;
            while((length=input.read(data))!=-1){
                output.write(data,0,length);
            }
        }
    }
}
